area = [
    "经济领域",
    "核领域",
    "政治领域",
    "军事领域",
    "科技领域",
    "国土领域",
    "社会领域",
    "文化领域",
    "网络领域",
    "生态领域",
    "资源领域",
    "金融领域",
    "太空领域",
    "极地领域",
    "深海领域",
    "生物领域",
    "海外利益领域",
    "数据领域",
    "人工智能领域",
    "粮食领域"
]
area_service_url = 'http://192.168.134.175:7001/model/extract/area'
type_service_url = 'http://192.168.134.175:7002/model/extract/type'
# 用户名
ELASTIC_USERNAME = "elastic"
# 用户密码
ELASTIC_PASSWORD = "iie123$%^"
# 集群地址
ELASTIC_ADDRESS = ["http://10.26.32.92:9222"]
READ_BATCH_SIZE = 1000
MAX_COUNT = 10000
start_date = "2022-04-21"
end_date = "2022-04-23"
READ_INDEX_NAME = "test_new_vector_entities"
WRITE_INDEX_NAME = "test_new_vector_entities_with_country"
mapping = {
    "mappings": {
        "properties": {
            "nm": {
                "type": "keyword"
            },
            "fssj": {
                "type": "date",
                "format": "yyyy-MM-dd"
            },
            "sjmc": {
                "type": "text",
                "analyzer": "ik_max_word"
            },
            "sjms": {
                "type": "text",
                "analyzer": "ik_max_word"
            },
            "ssly": {
                "type": "keyword"
            },
            "area": {
                "type": "keyword"
            },
            "lyss": {
                "type": "keyword"
            },
            "entities": {
                "type": "keyword"
            },
            "entities_organization": {
                "type": "keyword"
            },
            "entities_person": {
                "type": "keyword"
            },
            "entities_place": {
                "type": "keyword"
            },
            "keywords": {
                "type": "keyword"
            },
            "vector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            },
            "contentVector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            },
            "titleContentVector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            }
        }
    }
}

settings = {
    "settings": {
        "number_of_shards": 1,
        "number_of_replicas": 0,
        "max_result_window": 100000
    }
}
